package com.zp.datax.dao;


import com.zp.datax.core.model.DataxJobInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DataxJobInfoDao {

    List<DataxJobInfo> findAll();

    List<DataxJobInfo> pageList(@Param("offset") int offset,
                                @Param("pagesize") int pagesize,
                                @Param("name") String name);

    int pageListCount(@Param("offset") int offset,
                      @Param("pagesize") int pagesize,
                      @Param("name") String name);

    int save(DataxJobInfo dataxJobInfo);

    int update(DataxJobInfo dataxJobInfo);

    int remove(@Param("sysId") int sysId);

    DataxJobInfo load(@Param("sysId") int sysId);

    DataxJobInfo findByName(@Param("name") String name);
}
